import com.jikangjun.disk.file.repository.FileDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class FileServiceImpl {
    
    // 使用@Qualifier指定要注入的Bean名称
    @Autowired
    @Qualifier("repositoryFileDao")
    private FileDao fileDao;
    
    // ... 其他代码 ...
    
    public void renameFile(String fileId, String newName) {
        fileDao.updateFileName(fileId, newName);
    }
}